package com.agile.leetcode.canculateObjectSize.unsafe;

import java.lang.reflect.Field;

/**
 * @Author:ChenZhangKun
 * @Date: 2022/12/1 22:07
 */
public class PersonTest {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        Field field = Person.class.getDeclaredField("person");
        field.setAccessible(true);
        Person p=(Person)field.get(null);
        p.getName();
    }
}
